package com.ruoyi.system.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.YyAppointmentTime;

/**
 * 预约时间段Service接口
 *
 * @author ruoyi
 * @date 2025-03-25
 */
public interface IYyAppointmentTimeService
{
    /**
     * 查询预约时间段
     *
     * @param id 预约时间段主键
     * @return 预约时间段
     */
    public YyAppointmentTime selectYyAppointmentTimeById(Long id);

    /**
     * 查询预约时间段列表
     *
     * @param yyAppointmentTime 预约时间段
     * @return 预约时间段集合
     */
    public List<YyAppointmentTime> selectYyAppointmentTimeList(YyAppointmentTime yyAppointmentTime);

    /**
     * 新增预约时间段
     *
     * @param yyAppointmentTime 预约时间段
     * @return 结果
     */
    public int insertYyAppointmentTime(YyAppointmentTime yyAppointmentTime);

    /**
     * 修改预约时间段
     *
     * @param yyAppointmentTime 预约时间段
     * @return 结果
     */
    public int updateYyAppointmentTime(YyAppointmentTime yyAppointmentTime);

    /**
     * 批量删除预约时间段
     *
     * @param ids 需要删除的预约时间段主键集合
     * @return 结果
     */
    public int deleteYyAppointmentTimeByIds(String ids);

    /**
     * 删除预约时间段信息
     *
     * @param id 预约时间段主键
     * @return 结果
     */
    public int deleteYyAppointmentTimeById(Long id);

    List<Map<String, Object>> selectAppointmentTime(Integer doctorId, Integer departmentId);

    void updateBatch(List<YyAppointmentTime> yyAppointmentTimes);

    List<Map<String, Object>> selectAppointmentTime2(Long doctorId, Integer departmentId, String date);
}
